﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.storage.ui {
    import flash.utils.*;
    import org.aswing.*;
    import Display.InventoryUI.*;
    import Display.aswingui.*;

    public class StorageScrollingList extends InventoryScrollingList {

        public static const BUTTON_MARGIN_TOP:int = 67;

        public function StorageScrollingList(_arg1:Array, _arg2:Class, _arg3:int, _arg4:int=0, _arg5:int=2, _arg6:Boolean=false){
            super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
        }
        override protected function get assets():Dictionary{
            return (StorageView.assetDict);
        }
        override protected function prepare():void{
            var _local1:JPanel;
            var _local2:JPanel;
            if (!m_hideScrollButtons){
                _local1 = ASwingHelper.makeSoftBoxJPanelVertical(SoftBoxLayout.TOP);
                _local2 = ASwingHelper.makeSoftBoxJPanelVertical(SoftBoxLayout.TOP);
                _local1.append(ASwingHelper.verticalStrut(BUTTON_MARGIN_TOP));
                _local1.append(leftBtn);
                _local2.append(ASwingHelper.verticalStrut(BUTTON_MARGIN_TOP));
                _local2.append(rightBtn);
                this.append(ASwingHelper.horizontalStrut(3));
                this.appendAll(_local1, m_scrollPane, _local2);
            } else {
                this.append(m_scrollPane);
            };
            ASwingHelper.prepare(this);
            m_initialized = true;
        }

    }
}//package Modules.storage.ui 
